#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int arr[100][100] = { 0 };
	arr[1][1] = 1;
	int n = 0;
	scanf("%d", &n);
	int i = 0, j = 0;
	for (i = 2; i <= 10; i++)
	{
		for (j = 1; j <= i; j++)
		{
			arr[i][j] = arr[i - 1][j - 1] + arr[i - 1][j];
		}
	}
	for (i = 1; i <= 10; i++)
	{
		for (j = 1; j <= i; j++)
		{
			printf("%d ", arr[i][j]);
		}
		printf("\n");

	}

	return 0;
}